package models;

import java.util.*;
import javax.persistence.*;

import play.db.jpa.*;
 
@Entity
public class Contour extends Model{

	public double longitude;
	public double latitude;
	public int id_forme;
	
	public Contour(){}
	
	public Contour(double longitude, double latitude, int id_forme){
		this.longitude = longitude;
		this.latitude = latitude;
		this.id_forme = id_forme;
	}
	
	public List<Contour> getListe_contours_par_zone(int id){
		List<Contour> liste = Contour.find("byId_forme", id).fetch();
		return liste;
	}

	public double getLatitude() {
		return this.latitude;
	}

	public double getLongitude() {
		return this.longitude;
	}
	
	public int getId_forme() {
		return this.id_forme;
	}
	
}
